package com.dotflat.staffExtend.domain;

import com.dotflat.rest.domain.AreableObjectBase;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

@Entity
@Table(name = "ex_staff_extend_rank",
        uniqueConstraints = {
                @UniqueConstraint(columnNames = {
						"areaId",
                        "rankCircleId",
                        "staffId",
                })
        })
@Data
@EqualsAndHashCode(callSuper = true)
public class StaffExtendInfoRank extends AreableObjectBase {

	@Column(columnDefinition = "varchar(32)  COMMENT '员工id'", nullable = false)
	private String staffId;

	@Column(columnDefinition = "varchar(500)  COMMENT '标签，竖线分割'")
	private String tags;

	@Column(columnDefinition = "varchar(32)  COMMENT '评分周期id'", nullable = false)
	private String rankCircleId;

	@Column(columnDefinition = "varchar(500)  COMMENT '评分周期'", nullable = false)
	private String rankCircleName;

	@Column(columnDefinition = "int default 0   COMMENT '最终评分'", nullable = false)
	private Integer rankVal = 0;

	@Column(columnDefinition = "int default 0   COMMENT '管理员评分数量'", nullable = false)
	private Integer managerRankCount = 0;

	@Column(columnDefinition = "int default 0   COMMENT '总分数'", nullable = false)
	private Integer managerRankTotal = 0;

	@Column(columnDefinition = "int default 0   COMMENT '家长评分数量'", nullable = false)
	private Integer parentRankCount = 0;

	@Column(columnDefinition = "int default 0   COMMENT '家长评分总数'", nullable = false)
	private Integer parentRankTotal = 0;

	@Column(columnDefinition = "int default 0   COMMENT '学习得分数量'", nullable = false)
	private Integer studyRankCount = 0;

	@Column(columnDefinition = "int default 0   COMMENT '学习得分总数'", nullable = false)
	private Integer studyRankTotal = 0;

	@Column(columnDefinition = "int default 0   COMMENT '培训得分数量'", nullable = false)
	private Integer trainingRankCount = 0;

	@Column(columnDefinition = "int default 0   COMMENT '培训得分总数'", nullable = false)
	private Integer trainingRankTotal = 0;


}
